//
// Created by YXH on 2023/2/21.
//

#ifndef ALGORITHM_STUDENT_H
#define ALGORITHM_STUDENT_H

#include <iostream>

using namespace std;

struct Student {
    string name;
    int score;
    bool operator < (const Student &s) const {
        return score > s.score;
    }
    friend ostream &operator << (ostream &out, const Student &s) {
        out << s.name << " " << s.score <<endl;
        return out;
    }
};
#endif //ALGORITHM_STUDENT_H
